//
//  LYSuperViewController.h
//  artist
//
//  Created by laotang on 16/4/10.
//  Copyright © 2016年 viviyoo. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface LYSuperViewController : UIViewController
#pragma mark - Add UIBarButtonItem
/**
 *  自定义NavBar左边按钮
 */
- (UIBarButtonItem *)addLeftButtonWithImage:(UIImage *)image
                                     target:(id)target
                                  andAction:(SEL)action;

/**
 *  自定义NavBar友边按钮
 */
- (UIBarButtonItem *)addRightButtonWithImage:(UIImage *)image
                                      target:(id)target
                                   andAction:(SEL)action;

- (UIBarButtonItem *)addLeftButtonWithTitle:(NSString *)title
                                     target:(id)target
                                  andAction:(SEL)action;

- (UIBarButtonItem *)addRightButtonWithTitle:(NSString *)title
                                      target:(id)target
                                   andAction:(SEL)action;


- (UIBarButtonItem *)addRightButtonWithTitle:(NSString *)title handle:(void(^)(void)) handle;
- (UIBarButtonItem *)addRightButtonWitImage:(UIImage *)image handle:(void (^)(void))handle;
@end
